package com.example.client.message;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;
@EnableBinding(StreamIO.class)
@Component
@Slf4j
public class StreamReceiver {

    @StreamListener(StreamIO.IN)
    public void input(String message) {
        log.info("stream receive ：{}" , message);
    }

}
